package com.feng.educenter.service;

import com.feng.commonutils.R;
import com.feng.educenter.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.educenter.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author fengge
 * @since 2023-03-26
 */
public interface UcenterMemberService extends IService<UcenterMember> {
    /**
     *登录功能
     * @param ucenterMember
     * @return
     */
    R login(UcenterMember ucenterMember);

    /**
     * 用户注册
     * @param registerVo
     * @return
     */
    R registerUser(RegisterVo registerVo);

    /**
     * 根据token获取用户详情信息
     * @param httpServletRequest
     * @return
     */
    R getMemberInfo(HttpServletRequest httpServletRequest);

    /**
     * 根据openid判断已经存在
     * @param oepnid
     * @return
     */
    UcenterMember getOpenIdMember(String oepnid);

    /**
     * 查询某一天注册人数
     * @param day
     * @return
     */
    Integer countRegister(String day);
}
